import { createApp } from 'vue'
import { createPinia } from 'pinia'

import * as Icons from '@ant-design/icons-vue'

// import './mock'
import App from './App.vue'
import router from './router'
import i18n from './locales'

import 'ant-design-vue/dist/reset.css';
import './assets/main.less'
import './permission'

const rootProps = {
    created: () => {
        console.log('created')
    }
}

const app = createApp(App, rootProps)

app.use(createPinia())
app.use(router)
app.use(i18n)
app.config.globalProperties.$icons = Icons;
app.config.globalProperties.$t = (key: string) => i18n.global.t(key)

app.mount('#app')

